[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
it : > Hi Hans and Taco, > @Hans, I compiled by commenting and uncommenting one component at a time; > it is component 5 which interferes with the metapost code of component 14 > All I have to do now is find out what the cause is. > Fabrice > > Le jeu. 25 avr. 2024 à 16:40, Taco

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
Hi Hans and Taco, @Hans, I compiled by commenting and uncommenting one component at a time; it is component 5 which interferes with the metapost code of component 14 All I have to do now is find out what the cause is. Fabrice Le jeu. 25 avr. 2024 à 16:40, Taco Hoekwater a écrit : > > >

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Taco Hoekwater
itself. Something may be different in this component compared to the other ones. I cannot really say, of course. Still, using external image instead of inline metapost may be fix it. Not elegant, but if it works it works! Good luck, Taco > > \startcomponent[chapter-14] > \startMPpage > .

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Hans Hagen
the interfering one is found, make a copy and strip till the problem is gone it might be that you redefine something metapost Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
t; I don't know if I can explain the problem I'm having. I made a project > with 14 chapters. In each of them, there are graphics embedding metapost > code. I proceed as follows : I compile each chapter alone with lmtx then I > compile the project containing the 14 chapters. I didn't encounter

[NTG-context] Re: The graph is not visible.

2024-04-25 Thread Taco Hoekwater
:27, Fabrice Couvreur > wrote: > > Hi, > I don't know if I can explain the problem I'm having. I made a project with > 14 chapters. In each of them, there are graphics embedding metapost code. I > proceed as follows : I compile each chapter alone with lmtx then I compile >

[NTG-context] The graph is not visible.

2024-04-25 Thread Fabrice Couvreur
Hi, I don't know if I can explain the problem I'm having. I made a project with 14 chapters. In each of them, there are graphics embedding metapost code. I proceed as follows : I compile each chapter alone with lmtx then I compile the project containing the 14 chapters. I didn't encounter any

[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-04-16 Thread Henning Hraban Ramm
integration of Lua and MetaPost. --- ConTeXt was invented in the 1990s by Hans Hagen and Ton Otten of the Dutch company “Pragma Advanced Document Engineering” for typesetting schoolbooks. Taco Hoekwater refactored the TeX source code to create LuaTeX which was further developed into LuaMetaTeX

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-10 Thread Hans Hagen
On 4/10/2024 5:22 AM, seyal zavira wrote: seams this code means to put a hidden text with same size behind metapost shape. but it does not work properly for me (current version: 2024.04.01 08:59) and produce empty page but with searchable hidden text. as mentioned kind = "ou

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
seams this code means to put a hidden text with same size behind metapost shape. but it does not work properly for me (current version: 2024.04.01 08:59) and produce empty page but with searchable hidden text. also when i edit the code and replace metapost part like this: \startMPcode draw

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
seyal.zav...@gmail.com schrieb am 09.04.2024 um 14:53: i want to produce a gradient header i tried this code but it does not produce any result: \startext \def\Mystyle#1{\startMPcode picture tt ; tt := lmt_outline [ kind = "path", text = "#1", ] ; fill for i within tt :

[NTG-context] how to apply metapost effects to section title?

2024-04-09 Thread seyal . zavira
i want to produce a gradient header i tried this code but it does not produce any result: \startext \def\Mystyle#1{\startMPcode picture tt ; tt := lmt_outline [ kind = "path", text = "#1", ] ; fill for i within tt : pathpart i && endfor cycle withshademethod "linear"

[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
g examples that can apply gradient colors to metapost paths. how i can apply this cool feature to a piece of text? i tried the code below but it does not produce any result. \definecolor[Gleft] [h=9f9393] \definecolor[Gright] [h=ff1aa4] \startMPpage picture Mytext; Mytext := btex hello etex; draw

[NTG-context] how to apply gradient color to a piece of text?

2024-04-07 Thread seyal . zavira
hi all, when i look at luametafun manual there are some intresting examples that can apply gradient colors to metapost paths. how i can apply this cool feature to a piece of text? i tried the code below but it does not produce any result. \definecolor[Gleft] [h=9f9393] \definecolor[Gright] [h

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
lected do local combined = { } add(combined,whatever,"commands") add(combined,whatever,"environments") if interface == "common" then add(combined,whatever,"textnames") add(combined,whatever,"

[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
in the attached output which is very useful for the blind using an audio software.Best regards: OK no-math.pdf Description: Adobe PDF document On 1 Apr 2024, at 16:31, Hans Hagen <j.ha...@xs4all.nl> wrote:Hi,There is a new lmtx upload.-- The svg inclusion via metapost has been upgraded and cleanup

[NTG-context] Re: upload

2024-04-01 Thread Mikael Sundqvist
Hi, On Mon, Apr 1, 2024 at 9:36 AM Hans Hagen wrote: > > Hi, > > There is a new lmtx upload. > > -- The svg inclusion via metapost has been upgraded and cleanup a bit, > using some more recent metapost features. There are some new (not yet > all docum

[NTG-context] upload

2024-04-01 Thread Hans Hagen
Hi, There is a new lmtx upload. -- The svg inclusion via metapost has been upgraded and cleanup a bit, using some more recent metapost features. There are some new (not yet all documented metapost) features. -- In the process, support for LCH colors has been added, which is documented

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
Dear CTX wizards, The commands given by Hans don't work properly in my case (with CTX on Windows 11). I am probably ignorant of how to implement \startMPpage. I'm not a "MetaPost lover", but I'd like to understand something; especially as I know how to make simple frames to include

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread seyal zavira
rmat one has to specify every character with > possible abuse of a substitution feature that accesses it. So that is no > longer a real interesting option, unless of course one exports all text > as curves, just to be sure. > > (I will extend general text suport but it will always be sub

[NTG-context] Re: how to include an an svg file?

2024-03-15 Thread Hans Hagen via ntg-context
me cleanup, ps. For metapost lovers, here is some of the trickery used: \startMPpage[offset=1ts] draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (unitsquare

[NTG-context] Re: how to include an an svg file?

2024-03-13 Thread Jean-Pierre Delange
text wiki : https://wiki.contextgarden.net ___ ctx-test-metapost-svg.pdf Description: Adobe PDF document ___ If your ques

[NTG-context] Re: how to include an an svg file?

2024-03-12 Thread Jean-Pierre Delange
Yes, the code given by Seyal gives only the circle vith eyes and mouth without colors (on my computer). But, It seems that one have to deal with a more complex lines of code. If I'm not mistaken, MetaPost alone natively supports only the 3 colours red, green and blue. To support CMYK colour

[NTG-context] Re: Creating a module for calligraphy practice templates

2024-03-12 Thread Henning Hraban Ramm
Am 12.03.24 um 08:57 schrieb Andres Conrado Montoya: Hello, list! I've been working on a module to typeset calligraphy practice templates using ConTeXt and MetaPost. You are welcome to check it out on github: https://github.com/conradolandia/pauta <https://github.com/conradolandia/pa

[NTG-context] Creating a module for calligraphy practice templates

2024-03-12 Thread Andres Conrado Montoya
Hello, list! I've been working on a module to typeset calligraphy practice templates using ConTeXt and MetaPost. You are welcome to check it out on github: https://github.com/conradolandia/pauta I'm not including a MWE because the repository has all the current code. I hope this is fine. I did

[NTG-context] Re: FreeBSD 13.2

2024-02-25 Thread Henning Hraban Ramm
│   ├── doc │   │   ├── context │   │   └── fonts │   ├── fonts// (etc.) │   ├── metapost │   │   └── context │   ├── scripts │   │   └── context │   ├── source │   │   └── luametatex │   ├── tex │   │   ├── context │   │   └── generic │   └── web2c ├──

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Henning Hraban Ramm
{10}{ \bTR \bTD\strut \eTD\bTD \eTD\bTD \eTD \eTR } \eTABLE """ Hraban%D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
On 2/21/2024 7:47 PM, Henning Hraban Ramm wrote: Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}    draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
Am 21.02.24 um 19:43 schrieb Wolfgang Schuster: … but it would be visible on a colored background. I’m sure you can show me a better way… \startuseMPgraphic{dottedborder}   draw bottomboundary OverlayBox withpen pencircle scaled 2 dashed withdots withcolor "red";   setbounds currentpicture

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 21.02.2024 um 19:04: Am 19.02.24 um 23:15 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics

[NTG-context] Re: MetaPost lines in tables?

2024-02-21 Thread Henning Hraban Ramm
Am 19.02.24 um 23:15 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics? ATM I’m trying to place my MP lines behind a frame

[NTG-context] Re: MetaPost lines in tables?

2024-02-19 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 19.02.2024 um 22:39: I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics? ATM I’m trying to place my MP lines behind a frame-less TABLE; it will probably work, but it’s

[NTG-context] MetaPost lines in tables?

2024-02-19 Thread Henning Hraban Ramm
I guess I asked this a while ago, but I can’t find an answer: Is it possible to replace the lines of a TABLE with my own MetaPost graphics? ATM I’m trying to place my MP lines behind a frame-less TABLE; it will probably work, but it’s a crutch… Hraban

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
Thanks Mikael. This helped indeed. I updated my example on the Metapost page in the wiki accordingly. The`pagestate=start` functionality is not documented in the wiki. It's not clear for which context commands it can or should be used. Who is willing to help out here? Best regards Emanuel

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
e numbering in a pdf > viewer? > > On Feb. 17 2024, at 11:03 am, Emanuel Han via ntg-context > wrote: > > I think I could solve all the problems. Attached the finalized working > example. I created the > https://wiki.contextgarden.net/MetaPost#Layer_sets_as_individual_p

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
created the https://wiki.contextgarden.net/MetaPost#Layer_sets_as_individual_pages entry with it. Feel free to modify.CheersEmanuelOn Feb. 16 2024, at 7:56 am, Mikael Sundqvist wrote:Hi,not sure I get what you are missing. But you can trysetbounds currentpicture to (fullsquare scaled 200) ;in base

[NTG-context] Re: manuals

2024-02-18 Thread Jean-Pierre Delange
ittle more detailed. Once this documentation has been passed as an introductory part (itself containing chapters explaining how this page of documentation was put together, with notes in the margins, etc.), this book could introduce MKIV, LuaTeX, MetaPost and so on, but with a clear distincti

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Hans Hagen
anyway, not that much changed since the previous upload, so maybe you just stay below a threshold I recently generated a 180MB document with 2500 fonts + metapost outlines of them and that could bump mem usage (with empty cache) to 30 GB

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Shiv Shankar Dayal
;> >> anyway, not that much changed since the previous upload, so maybe you >> just stay below a threshold >> >> I recently generated a 180MB document with 2500 fonts + metapost >> outlines of them and that could bump mem usage (with empty cache) to 30 >

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Shiv Shankar Dayal
ous upload, so maybe you > just stay below a threshold > > I recently generated a 180MB document with 2500 fonts + metapost > outlines of them and that could bump mem usage (with empty cache) to 30 > GB (less after fonts were cached) but normally we stay around 125 MB for > a docume

[NTG-context] Re: Memory consumption in new upload

2024-02-17 Thread Hans Hagen
, which is only noticed when one has lots of text on a page (or keeps boxes stuff around) anyway, not that much changed since the previous upload, so maybe you just stay below a threshold I recently generated a 180MB document with 2500 fonts + metapost outlines of them and that could bump mem

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
I think I could solve all the problems. Attached the finalized working example. I created the https://wiki.contextgarden.net/MetaPost#Layer_sets_as_individual_pages entry with it. Feel free to modify. Cheers Emanuel On Feb. 16 2024, at 7:56 am, Mikael Sundqvist wrote: > Hi, > > n

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
Emanuel Han via ntg-context wrote: > > Resp. the solution should be such that each generated PDF page has the same > dimension, the same background colour and a page number and the metapost > content on each page has the same scaling factor. > > On Feb. 15 2024, at 11:10 pm, E

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
Resp. the solution should be such that each generated PDF page has the same dimension, the same background colour and a page number and the metapost content on each page has the same scaling factor. On Feb. 15 2024, at 11:10 pm, Emanuel Han via ntg-context wrote: > Dear Mikael, > > I

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
Dear Mikael, I actually need to keep the \dorecurse mechanism of the mwe (from line 44 on), because I need the "setbounds currentpicture to TheFrame" and also because I need page numbering inside the MPpage, as done with draw textext(decimal(currentime)). So, how can I use the

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
Dear Mikael, thanks a lot! this seems to be the solution! And it looks beatiful enough to me  I'll try to port all my layers to this new method and see if I run into new problems again  Emanuel On Feb. 15 2024, at 8:19 am, Mikael Sundqvist wrote: > Hi > > On Thu, Feb 15, 2024 at 1:03 AM

[NTG-context] Re: An announcement of my new book.

2024-02-15 Thread Henning Hraban Ramm
Don’t forget the articles from the context journal: https://articles.contextgarden.net/ (2022 is still missing) Esp. Taco’s about MetaPost are very interesting and maybe that’s some low level stuff you’re missing. You don’t need to look at Hans’ contributions – everything that’s still valid

[NTG-context] Re: Working with layer sets with Metapost

2024-02-14 Thread Mikael Sundqvist
Hi On Thu, Feb 15, 2024 at 1:03 AM Emanuel Han via ntg-context wrote: > > Dear list, > > the attached .tex file is the minimal working example we discussed today in > the online meeting. > > I realized that the approach of looping through k of p[k] is not fitting my > needs, because it's not

[NTG-context] Working with layer sets with Metapost

2024-02-14 Thread Emanuel Han via ntg-context
Dear list, the attached .tex file is the minimal working example we discussed today in the online meeting. I realized that the approach of looping through k of p[k] is not fitting my needs, because it's not flexible enough. I need another approach, one which works with layer sets. I would stop

[NTG-context] upload

2024-02-14 Thread Hans Hagen
* i end should now be: for i=1,10 in t do local i = 2 * i end as one cannot change the (local constant) i which actually is not that different from what metapost does. The good news is that voilating this is reported when a lua file is loaded so one can't get

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Shiv Shankar Dayal
> > > > Caching is enabled out of the box, so you don't need to configure > anything. > > > >> Other than that, how can I cache Metafun images so that they are not > >> recomputed on every processing of file. > > > > There used to a command for caching

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Hans Hagen
if that is really needed in LMTX. In most cases, metapost processing does not have a significant processing delay. if images are the same one can use the reuseMPgraphic or uniqueMPgraphic features .. plenty of examples can be found, but as Aditya poined out mp is quite fast (but reuse saves on file

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Aditya Mahajan
n most cases, metapost processing does not have a significant processing delay. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Hans Hagen
comes at a price. And, compared to pdftex, in most cases luametatex is faster on documents of average complexity. If you also use xml and/or metapost you migh tbe dragged down to a few pages per second while lmtx doesn't suffer much. Anyway, if you think it can be made faster you can always

[NTG-context] OT: special ToC

2024-01-15 Thread Henning Hraban Ramm
I came across a table of contents style that’s hardly possible with TeX: https://historians.social/@dbellingradt/111760591144801241 (image is too big for the ML) (Yes of course you can do it with manual references and MetaPost lines…) ;D

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
Can we please add https://github.com/jemmybutton/byrne-euclid/blob/master/byrne.mp to Wiki because files have a tendency to disappear? Similarly, can we please add https://github.com/thruston/Drawing-with-Metapost/blob/main/Drawing-with-Metapost.pdf file to Wiki? -- Respect, Shiv Shankar Dayal

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Shiv Shankar Dayal
The fiziko library by the same author is also very interesting: > https://github.com/jemmybutton/fiziko > Since it has some pseudo-3D features, maybe you can learn from it. > Thanks for all this info. I will look into this and perhaps come up with a Metapost file, and then we can pos

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Henning Hraban Ramm
Am 13.01.24 um 15:54 schrieb Gavin via ntg-context: One pretty MetaPost drawing option is the byrne package by Sergey Slyusarev, which he used (with ConTeXt) to reproduce Oliver Byrne’s 1847 quirky edition on the first six books of Euclid’s “Elements”. All of the drawing is in MetaPost

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-13 Thread Gavin via ntg-context
, since those features really are written in TikZ. I do not know of a MetaPost package that does the same thing, but there might be one. One pretty MetaPost drawing option is the byrne package by Sergey Slyusarev, which he used (with ConTeXt) to reproduce Oliver Byrne’s 1847 quirky edition

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Shiv Shankar Dayal
etry library for common operations like finding > tangents, perpendiculars, circumcircle, orthocenters and such? > > I don’t think we have anything like that specifically in the MetaFun > world, but if there is a MetaPost package you like, you can use it with > MetaFun. For example, the TeX

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Gavin via ntg-context
Hi Shiv, > Do we have a geometry library for common operations like finding tangents, > perpendiculars, circumcircle, orthocenters and such? I don’t think we have anything like that specifically in the MetaFun world, but if there is a MetaPost package you like, you can use it with M

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Henning Hraban Ramm
hat it's not clear which words I should be looking at. Ask yourself: what word(s) do I want the viewer to remember when they walk away? 6. Consider swapping the TeX and MetaPost circles so that Lua, MetaPost and TeX are read left to right as they appear in the acronym LMTX. Perhaps invert the &

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Bruce Horrocks
. Ask yourself: what word(s) do I want the viewer to remember when they walk away? 6. Consider swapping the TeX and MetaPost circles so that Lua, MetaPost and TeX are read left to right as they appear in the acronym LMTX. Perhaps invert the "triangle" so that there are two ci

[NTG-context] Re: LMTX schema for poster

2024-01-11 Thread Henning Hraban Ramm
to complicate it needlessly. I’ll redraw it in MetaPost (with proper typography) if I’m sure enough. Hraban LMTX-Schema.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please

[NTG-context] Re: Metapost docs

2024-01-11 Thread Hans Hagen
On 1/11/2024 4:54 PM, Shiv Shankar Dayal wrote: Dear Gavin, I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory. If something is not in the metafun, luametafun or another manual, then you should not use it as it's

[NTG-context] Re: Metapost docs

2024-01-11 Thread Shiv Shankar Dayal
Dear Gavin, I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory. On Thu, Jan 11, 2024 at 9:12 PM Gavin via ntg-context wrote: > Hi Shiv, > > I am working with MetaPost in ConTeXt. Here are the resour

[NTG-context] Re: Metapost docs

2024-01-11 Thread Gavin via ntg-context
Hi Shiv, I am working with MetaPost in ConTeXt. Here are the resources I use, roughly in the order I search when trying to solve a problem. - MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) This is most comprehensive and helpful source. - MetaPost Manual (http

[NTG-context] Re: Metapost docs

2024-01-10 Thread shivshankar . dayal
I have files in my installation like 'mp-form.mkiv, mp-chem.mkiv' and so on. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Re: Status of Asymptote

2024-01-10 Thread shivshankar . dayal
Thanks for all the help. I have decided to use Metapost as it is tightly integrated with Asymptote and I find it fun. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add

[NTG-context] Re: Chemnitz, Leipzig, Call for Poster

2024-01-10 Thread Henning Hraban Ramm
. For people who don’t know they might be happy with a “programming system” we’d need a different poster. (The LaTeX-based SPBuchsatz targets this clientele.) I want to show a few interesting things that are possible with ConTeXt/MetaPost and a few basics how it works. I guess I’ll use the “christmas

[NTG-context] Lua and inject.path to make a disconnected MetaPost path?

2024-01-08 Thread Gavin via ntg-context
Hello LuaMetaFun Fans, Can I use mp.inject.path in Lua to create a disconnected path in MetaPost? This is for my module that draws globes. I currently do something like this for drawing the continents. (This MWE has two triangular continents.) \startluacode continents = {} continents[1

[NTG-context] Re: Metapost docs

2024-01-08 Thread Hans Hagen via ntg-context
On 1/8/2024 1:50 AM, Shiv Shankar Dayal wrote: I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. i'm not sure what you mean with library ... can you give an example? Hans

[NTG-context] Metapost docs

2024-01-07 Thread Shiv Shankar Dayal
I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. -- Respect, Shiv Shankar Dayal ___ If your

[NTG-context] Re: Metapost: draw only subpath; changing thickness of line

2024-01-06 Thread Emanuel Han via ntg-context
Hi Taco, thanks for your help. This works for me! On Jan. 5 2024, at 2:13 pm, Taco Hoekwater wrote: > Hi, > > Here is 'a' way to draw the subpath, at least. I do not have time to come up > with a nice “thicker in the middle” solution. > Best wishes, > Taco > > > \startMPcode > numeric u; u=1cm;

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
> > > >> path A; A = z0..z1..z2..z3..z4 ; > > >> pair AStartPoint; AStartPoint = point 0 of A; > > >> pair AEndPoint; AEndPoint = point 4 of A; > > >> path B; B = z5..z6; > > >> pair BStartPoint; BStartPoint = point 0 of B; > > >

[NTG-context] Re: Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Taco Hoekwater
Hi, Here is 'a' way to draw the subpath, at least. I do not have time to come up with a nice “thicker in the middle” solution. Best wishes, Taco \startMPcode numeric u; u=1cm; %equiangular spiral numeric a, k ; a = 2.3; %scaling factor k = 8.61722335; path S; S = right for t=1 upto 360: .. a

[NTG-context] Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Emanuel Han via ntg-context
Hi all, I have this MWE. Now I want to draw only the subpath of S between gong6 and gong7 with a red line which is narrower at the two ends and thicker in the middle part. How to achieve this? Thanks! Emanuel \setuppapersize[A4,landscape] \starttext \startMPcode numeric u; u=1cm; %equiangular

[NTG-context] Re: Status of Asymptote

2024-01-03 Thread Jeroen
Dayal wrote: It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. It is possible to obtain simple integration for asymptote using

[NTG-context] Re: 2024

2024-01-02 Thread Willi Egger
ears > gimmick: > > https://www.pragma-ade.nl/2023 > > Of course it screams metapost but tex and lua are also involved. See it as > compensation for the lack of an end-of-year update. The last page of the > result

[NTG-context] Re: 2024

2024-01-02 Thread Fabrice L
Dear Hans, > Le 2 janv. 2024 à 05:35, Hans Hagen via ntg-context a > écrit : > > On 1/1/2024 3:33 PM, vm via ntg-context wrote: >> On 01/01/2024 13:28, Hans Hagen wrote: >>> Of course it screams metapost but tex and lua are also involved. See it as >>>

[NTG-context] Re: 2024

2024-01-02 Thread Hans Hagen via ntg-context
On 1/1/2024 3:33 PM, vm via ntg-context wrote: On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed

[NTG-context] Re: 2024

2024-01-01 Thread vm via ntg-context
On 01/01/2024 13:28, Hans Hagen wrote: Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit of explanation. Beautiful indeed ! (And thank you for all the good work) Is the puzzle

[NTG-context] 2024

2024-01-01 Thread Hans Hagen
Hi, As a side effect (spin off) of this years xmas card we have a new years gimmick: https://www.pragma-ade.nl/2023 Of course it screams metapost but tex and lua are also involved. See it as compensation for the lack of an end-of-year update. The last page of the result has a bit

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
On Sun, 31 Dec 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. Right now I > generate images separately and embed them in PDF using externalfigure command > which works but I have to maintain all the graphics separately. It is possible

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Hans Hagen
On 12/30/2023 8:04 PM, Shiv Shankar Dayal wrote: Hi all, It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. next year we

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Alan Braslau via ntg-context
On 30/12/23 30/12/23, 12:04, Shiv Shankar Dayal wrote: It would be nice to either support Metapost 3D Very simple MP pseudo 3D is included in tex/texmf-context/metapost/context/base/mpiv/mp-tres.mpiv Alan

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Gavin via ntg-context
Hi Shiv and Fabrice, > On Dec 30, 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. > On Dec 6, 2021, Fabrice L wrote: > I would be very interested to see an example of a Metafun drawing made with > the help of LuaTeX to speed up so

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Shiv Shankar Dayal
Hi all, It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. Respect, Shiv

[NTG-context] Re: Seeking advice for module that draws globes

2023-12-17 Thread Hans Hagen via ntg-context
me suggestions. When all is stable I can spend a few hours on optimizing if needed. I am a novice at both Lua and MetaPost. I’m also new to Git and have never shared anything of substance with the ConTeXt community. (This barely counts as substantive, but I figure it’s best to start smal

[NTG-context] Seeking advice for module that draws globes

2023-12-17 Thread Gavin via ntg-context
;% Add a border, if you want. \stopMPpage I am a novice at both Lua and MetaPost. I’m also new to Git and have never shared anything of substance with the ConTeXt community. (This barely counts as substantive, but I figure it’s best to start small.) I’m sure many of you could find

[NTG-context] Re: About framedtext

2023-12-13 Thread Alan Braslau via ntg-context
On Wed, 13 Dec 2023 18:55:34 +0100 Wolfgang Schuster wrote: > This was added a few years ago (AFAIR to provide something similar to > the TikZ color command). You actually mean similar to the MetaPost color command.

[NTG-context] Re: About framedtext

2023-12-13 Thread Henning Hraban Ramm
(corner=round still works) or create your own background as metapost graphic with rounded corners. Oh, yes, here’s Hans’ fix. Hraban if not modules then modules = { } end modules ['lpdf-rul'] = { version = 1.001, comment = "companion to grph-rul.mkiv", author= &

[NTG-context] Re: About framedtext

2023-12-13 Thread Wolfgang Schuster
background as metapost graphic with rounded corners. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
Hi, in my ConTeXt book, some examples for \framed with rounded corners look odd, as if the MetaPost calculation of rounded corners fails. I can’t find a minimal example that shows the problem, and I can’t imagine which of the settings in my extensive environment would cause it. Find below

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
t = "\JapaneseFont 日本語" > >> ], AEndPoint);); > >> > >> p3:=image( > >> label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > >> BStartPoint); > >> ); > >> > >> p4:=image(draw A; label(lmt_outline

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
gt; > >> z3 = (10,70); > > >> z4 = (30,50); > > >> z5 = (90,70); > > >> z6 = (-10,70); > > >> > > >> path A; A = z0..z1..z2..z3..z4 ; > > >> pair AStartPoint; AStartPoint = point 0 of A; > > >> pair AEn

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
t;> > >> p2:=image(draw A; label(lmt_outline [ > >> text = "\JapaneseFont 日本語" > >> ], AEndPoint);); > >> > >> p3:=image( > >> label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > >> BStartPoint); >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
>> label(textext("\notonaskharabic \textdir TRT دانگ") scaled 1.2, > >> BStartPoint); > >> ); > >> > >> p4:=image(draw A; label(lmt_outline [ > >> text = "\KoreanFont 한국어" > >> ], AStartPoint);); > >>

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
mage( >> draw B withcolor blue; >> ); >> \stopMPinclusions >> >> \starttext >> >> \dorecurse{6}{ % Frame >> \setupMPpage[background=color, backgroundcolor=SpringGreen] >> \startMPpage[pagestate=start] >> currentime := #1 ; >>

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
n) withcolor > magenta ; > for k=1 upto currentime: draw p[k]; endfor > setbounds currentpicture to TheFrame ; > > desiredformat := 1080;% In pixels (will be converted by default at 72dpi) > currentpicture := currentpicture xysized (desiredformat ,desiredformat ); > > \stopMPpage &

  1   2   3   4   5   6   7   8   9   10   >